package thread;

/**
 * @Author pedant
 * @Date 2019/8/30 15:28
 * @Description 创建线程的方式
 */
public class TheadTest extends Thread {
    TheadTest(String name){
        super(name);
    }
    @Override
    public void run() {
        System.out.println(this.getName()+"线程启动");
    }

    public static void main(String[] args) {
        Thread tt = new TheadTest("继承");
        tt.start();
    }
}
